﻿@model mvcDemo.Models.LoginModelNew

@{
    ViewBag.Title = "Login";
}

@{
    Layout = null;
}
<!DOCTYPE html>
<html>
<head>
    <title>用户登陆</title>
</head>
<body>  
    @using (Html.BeginForm())
    {
        <div>
            用户名：
        </div>
        <div>
            @Html.TextBoxFor(model => model.UserName)
        </div>
        <div>
            密码：
        </div>
        <div>
            @Html.PasswordFor(model => model.Password)
        </div>
        <div>
            <input type="submit" value="登录" />
        </div>
        <div>
            @Html.Label("keyide")
        </div>
        <div>
        @{
        List<SelectListItem> selectList = new List<SelectListItem>();
        selectList.Add(new SelectListItem { Value = "1", Text = "列表项一" });
        selectList.Add(new SelectListItem { Value = "2", Text = "列表项二" });
        }
            @Html.DropDownList("ddlList",(SelectList)new SelectList(selectList.AsEnumerable(),"Value","Text"))
        </div>
    }
</body>
</html>
<p>
    @Html.ActionLink("Edit", "Edit", new { /* id=Model.PrimaryKey */ }) |
    @Html.ActionLink("UserInformation", "User")
</p>
